﻿using T4UtilityBelt.Writers;

namespace T4UtilityBelt.UxDesigns.Controls.Renderers.Android.Helpers
{
    public static class WidthWriter
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "width")]
        public static void Write(double? width, VerticalAlignment? verticalAlignment, CodeWriter writer)
        {
            // todo: Finish this for all the options

            if (verticalAlignment == VerticalAlignment.Stretch)
            {
                writer.WriteAttribute("android:layout_width", "fill_parent");
            }
        }
    }
}
